/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2022-02-02 20:07:07
 * @LastEditors: GGB
 * @LastEditTime: 2022-02-05 11:52:06
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
import Components from 'unplugin-vue-components/vite'
import path from 'path';
function resolve(dir) {
  return path.join(__dirname, dir)
}
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    Components({
      resolvers: [AntDesignVueResolver()]
    })],
  resolve: {
    alias: {
      '@': resolve('src'),
      '@a': resolve('src/assets'),
      '@ap': resolve('src/api'),
      '@b': resolve('src/block'),
      '@c': resolve('src/components'),
      '@s': resolve('src/store'),
      '@r': resolve('src/router'),
      '@u': resolve('src/use'),
      '@ut': resolve('src/utils'),
      '@v': resolve('src/views'),
    }
  }

})
